package com.clms.marketings.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.joda.time.DateTime;

import java.sql.Date;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "广告管理",description = "广告管理表")
@TableName(value ="tb_advertise")
public class TbAdvertise {
  @TableId(value = "id",type = IdType.AUTO)
  @ApiModelProperty(value = "广告编号")
  private Integer id;
  @ApiModelProperty(value = "广告名字")
  private String name;
  @ApiModelProperty(value = "广告位置")
  private long positionId;
  @ApiModelProperty(value = "图片")
  private String pic;
  @ApiModelProperty(value = "开始时间")
  private String startTime;
  @ApiModelProperty(value = "结束时间")
  private String endTime;
  @ApiModelProperty(value = "上下线状态")
  private long status;
  @ApiModelProperty(value = "点击数")
  private long clickCount;
  @ApiModelProperty(value = "下单数")
  private long orderCount;
  @ApiModelProperty(value = "链接地址")
  private String url;
  @ApiModelProperty(value = "备注")
  private String note;
  @ApiModelProperty(value = "排序")
  private long sort;

  @TableField(exist = false)
  private SmsAdvertisePosition smsAdvertisePosition;

}
